<div id="systeminfo-edit">
        <div class="title">
            系统信息设置
        </div>
    <div class="content">
    <form action="__APP__/SystemInfo/modifysysteminfo" method="post" id="form">
        <input type="hidden" name="filename" value="siteconfig.inc.php" />

        <dl class="links">
            <li style="position: relative;" class="attention"><img class="img" src="__PUBLIC__/images/1.png" />
                <span style="position: absolute;bottom: 8px;margin-left: 3px;"><strong>Twitter Link :</strong>
                    <input type="text" class="text" name="twitterlink" value="<{$Think.config.TWITTERLINK}>" />
                </span>
            </li>
            <li style="position: relative;" class="attention"><img class="img" src="__PUBLIC__/images/2.png" />
                <span style="position: absolute;bottom: 8px;margin-left: 3px;"><strong>Facebook Link :</strong>
                    <input type="text" class="text" name="facebooklink" value="<{$Think.config.FACEBOOKLINK}>" />
                </span>
            </li>
            <li style="position: relative;" class="attention"><img class="img" src="__PUBLIC__/images/3.png" />
                <span style="position: absolute;bottom: 8px;margin-left: 3px;"><strong>RSS Link :</strong>
                    <input type="text" class="text" name="rsslink" value="<{$Think.config.RSSLINK}>" />
                </span>
            </li>
        </dl>

        <dl class="other">
            <li><strong>Site Name:</strong></li>
            <li><input type="text" class="text" name="sitename" value="<{$Think.config.SITENAME}>" /></li>
            <li><strong>Page Num:</strong></li>
            <li><input type="text" class="text" name="pagenum" value="<{$Think.config.PAGENUM}>" /></li>
            <li><strong>Contact:</strong></li>
            <li><input type="text" class="text" name="contact" value="<{$Think.config.CONTACT}>" /></li>
            <li><strong>Phone:</strong></li>
            <li><input type="text" class="text" name="phone" value="<{$Think.config.PHONE}>" /></li>
            <li><strong>Address:</strong></li>
            <li><input type="text" class="texts" name="address" value="<{$Think.config.ADDRESS}>" /></li>
            <li><strong>Coryright:</strong></li>
            <li><input type="text" class="texts" name="copyright" value="<{$Think.config.COPYRIGHT}>" /></li>
            <li><input type="submit" value="修改" /></li>
        </dl>
    </form>
    </div>
</div>

<script>

    $(function(){

        $("#form").submit(function(){

            var fm=document.getElementsByTagName('form')[0];
            if(isNaN(fm.pagenum.value)){
                alert('分页数必须为数字');
                return false;
            }
            if(isNaN(fm.phone.value)){
                alert('联系电话必须为数字');
                return false;
            }

        });

    });

</script>